package com.hzqy.persistence.dao.epg;


import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.epg.AcBFConfigVo;
import com.hzqy.web.vo.epg.AcBFRecordVo;

@Repository
public class AcBFRecordDao extends PersistenceDao<AcBFRecordVo, Integer> {

	public AcBFRecordVo selectAcBFRecordByService (Map map) {
		return getSqlSession().selectOne(this.getNamespace()+"selectAcBFRecordByService", map);
	}
	
	public Integer insertAcBFRecordBy (AcBFRecordVo acBFRecordVo) {
		return getSqlSession().insert(this.getNamespace()+"insertAcBFRecordBy", acBFRecordVo);
	}
	
	public AcBFConfigVo selectConfig (Map map) {
		return getSqlSession().selectOne(this.getNamespace()+"selectConfig", map);
	}
	
	public List<AcBFRecordVo> selectByDate(AcBFRecordVo acBFRecordVo){
		return getSqlSession().selectList(this.getNamespace()+"selectByDate", acBFRecordVo);
	}
	
	public List<AcBFRecordVo> selectServerCount (Map map) {
		return getSqlSession().selectList(this.getNamespace()+"selectServerCount", map);
	}

}
